from django.db import models
from libs.db import BaseModel


class Encrypt(BaseModel):
    private_key = models.TextField('私钥')
    public_key = models.TextField('公钥')
    public_key_verify_url = models.CharField('公钥验证地址', max_length=1000, null=True, blank=True)
    is_deleted = models.BooleanField('删除', default=False)

    class Meta:
        verbose_name = '加密配置'
        verbose_name_plural = '加密配置'
        ordering = ('-id',)
